package cc.openhome;

/**
 * Created by LJY on 2017/3/19.
 */
public class Ocean2 {
    public static void main(String[] args) {
        doSwim(new Seaplane("空军零号"));
        doFly(new FlyingFish("甚平"));
    }
    static void doSwim(Swimmer swimmer){
        swimmer.swim();
    }
    static void doFly(FlyingFish flyer){
        flyer.fly();
        flyer.swim();
    }
}
